package cn.edu.cqut.test5;

public class Triangle extends Shape {
	private double a;
	private double h;
	
	public double getA() {
		return a;
	}

	public double getH() {
		return h;
	}

	public Triangle(double a, double h)
	{
		this.a = a;
		this.h = h;
	}
	
	@Override
	double getArea() {
		return a*h/2;
	}
}
